package com.sibco.client.common;

import com.bstek.dorado.common.UserConfig;

public class UrlMap {
  
  private static String mergeStr(){
	  String appRoot=Tools.toStr(UserConfig.getString("app_root")).trim();
	  String rtnStr="";
	  if (appRoot.equals("")||appRoot.equals("/")){
		  rtnStr="";
	  }else{
		  rtnStr="/"+appRoot;
	  }
	  return rtnStr;
  }
  public static String mapImageUrl(String sURL) {
	
    return mergeStr()+"/jsp/images/"+sURL;
  }
  public static String mapCssUrl(String sURL) {
    return mergeStr()+"/jsp/css/"+sURL;
  }
  public static String mapJsUrl(String sURL) {
    return mergeStr()+"/jsp/js/"+sURL;
  }
  public static String mapHomeUrl(String sURL) {
    return mergeStr()+"/"+sURL;
  }
  public static String mapJspUrl(String sURL) {
    return mergeStr()+"/jsp/"+sURL;
  }
  public static String mapJspIncludeUrl(String sURL) {
    return mergeStr()+"/jsp/"+sURL;
  }
  public static String mapLoginServletUrl(){
	  return mergeStr()+"/login.loginServlet";
  }





}
